const Util = {
    install: function(Vue, option) {
        /**
         * 
         * @param {*} obj 需要监听的对象
         * @param {*} callback 事件监听的回调
         */
      Vue.prototype.$scrollListener = (obj, callback) => {
        obj.addEventListener('scroll', callback, true);
      }

      Vue.prototype.$removeScrollListener = (obj, callback) => {
        obj.removeEventListener('scroll', callback);
      }
      
    }
  };
  
  export default Util;
  